package pos.gengshen.com.gspos.pojo;


import java.io.Serializable;
import java.util.Date;

/**
 * 订单实体类
 */


public class Order implements Serializable {
	
	private Long id;				//id
	private String orderNumber;		//订单号
	private Long userId;			//用户id
	private Long companyId;			//企业id
	private Long shopId;			//门店id
	private Integer state;			//订单状态  1_未兑换  2_已兑换  3_核销
	private Date createDate;		//创建时间
	private Date payTime;			//交易时间
	private Date exchangeDate;		//核销时间
	private Integer payMoney;		//交易积分
	private Long couponId;			//优惠券id
	private Long freeMoney;			//优惠金额
	private Long shiftId;			//交班id
	private Boolean isDel;			//是否删除
	private String nick;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Long companyId) {
		this.companyId = companyId;
	}

	public Long getShopId() {
		return shopId;
	}

	public void setShopId(Long shopId) {
		this.shopId = shopId;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getPayTime() {
		return payTime;
	}

	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}

	public Date getExchangeDate() {
		return exchangeDate;
	}

	public void setExchangeDate(Date exchangeDate) {
		this.exchangeDate = exchangeDate;
	}

	public Integer getPayMoney() {
		return payMoney;
	}

	public void setPayMoney(Integer payMoney) {
		this.payMoney = payMoney;
	}

	public Long getCouponId() {
		return couponId;
	}

	public void setCouponId(Long couponId) {
		this.couponId = couponId;
	}

	public Long getFreeMoney() {
		return freeMoney;
	}

	public void setFreeMoney(Long freeMoney) {
		this.freeMoney = freeMoney;
	}

	public Long getShiftId() {
		return shiftId;
	}

	public void setShiftId(Long shiftId) {
		this.shiftId = shiftId;
	}

	public Boolean getDel() {
		return isDel;
	}

	public void setDel(Boolean del) {
		isDel = del;
	}

	public String getNick() {
		return nick;
	}

	public void setNick(String nick) {
		this.nick = nick;
	}

	@Override
	public String toString() {
		return "Order{" +
				"id=" + id +
				", orderNumber='" + orderNumber + '\'' +
				", userId=" + userId +
				", companyId=" + companyId +
				", shopId=" + shopId +
				", state=" + state +
				", createDate=" + createDate +
				", payTime=" + payTime +
				", exchangeDate=" + exchangeDate +
				", payMoney=" + payMoney +
				", couponId=" + couponId +
				", freeMoney=" + freeMoney +
				", isDel=" + isDel +
				'}';
	}
}
